package com.andrew.pegSolitareEngine;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageButton;


public class Hole extends ImageButton{
	private Peg peg;
	
	private int rowId;
	private int columnId;

	public Hole(Context context, int rowId, int columnId){
		super(context);
		this.rowId = rowId;
		this.columnId = columnId;
	}
	
	public int getColumnId() {
		return columnId;
	}

	public void setColumnId(int columnId) {
		this.columnId = columnId;
	}

	public int getRowId() {
		return rowId;
	}

	public void setRowId(int rowId) {
		this.rowId = rowId;
	}
	
	public Peg getPeg() {
		return peg;
	}
	
	public void setPeg(Peg peg) {
		this.peg = peg;
	}
	public String getPegId(){
		String thisPegId = "(" + rowId + "," + columnId + ")";
		return thisPegId;
	}
	
	public boolean isFull(){
		boolean checkForPeg = false;
		if (peg!=null){
			checkForPeg = true;
		}
		return checkForPeg;		
	}
}